.class public final LPkUwx/Axwse/EwidO/xYVdc;
.super Ljava/lang/Object;

# interfaces
.implements LPkUwx/KtgSK;


# instance fields
.field private final xlBxN:LPkUwx/fZHsD;


# direct methods
.method public constructor <init>(LPkUwx/fZHsD;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, LPkUwx/Axwse/EwidO/xYVdc;->xlBxN:LPkUwx/fZHsD;

    return-void
.end method

.method private DqbCP(Ljava/util/List;)Ljava/lang/String;
    .locals 6

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v0, 0x0

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    move v1, v0

    :goto_0
    if-ge v1, v3, :cond_1

    if-lez v1, :cond_0

    const-string v0, "; "

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_0
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, LPkUwx/FdMdK;

    invoke-virtual {v0}, LPkUwx/FdMdK;->rNzau()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const/16 v5, 0x3d

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v0}, LPkUwx/FdMdK;->HYhsx()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_1
    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public nVhfY(LPkUwx/yHGlH;)LPkUwx/kHRtU;
    .locals 8

    const/4 v0, 0x0

    invoke-interface {p1}, LPkUwx/yHGlH;->nMtaf()LPkUwx/tQIEa;

    move-result-object v1

    invoke-virtual {v1}, LPkUwx/tQIEa;->eBLts()LPkUwx/hNnMN;

    move-result-object v2

    invoke-virtual {v1}, LPkUwx/tQIEa;->FlRcs()LPkUwx/SZZoc;

    move-result-object v3

    if-eqz v3, :cond_1

    invoke-virtual {v3}, LPkUwx/SZZoc;->lKhzp()LPkUwx/uxZkv;

    move-result-object v4

    if-eqz v4, :cond_0

    const-string v5, "Content-Type"

    invoke-virtual {v4}, LPkUwx/uxZkv;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v5, v4}, LPkUwx/hNnMN;->GrKzz(Ljava/lang/String;Ljava/lang/String;)LPkUwx/hNnMN;

    :cond_0
    invoke-virtual {v3}, LPkUwx/SZZoc;->pAovp()J

    move-result-wide v4

    const-wide/16 v6, -0x1

    cmp-long v3, v4, v6

    if-eqz v3, :cond_8

    const-string v3, "Content-Length"

    invoke-static {v4, v5}, Ljava/lang/Long;->toString(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, LPkUwx/hNnMN;->GrKzz(Ljava/lang/String;Ljava/lang/String;)LPkUwx/hNnMN;

    const-string v3, "Transfer-Encoding"

    invoke-virtual {v2, v3}, LPkUwx/hNnMN;->eJfyQ(Ljava/lang/String;)LPkUwx/hNnMN;

    :cond_1
    :goto_0
    const-string v3, "Host"

    invoke-virtual {v1, v3}, LPkUwx/tQIEa;->vwibQ(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_2

    const-string v3, "Host"

    invoke-virtual {v1}, LPkUwx/tQIEa;->EBgsH()LPkUwx/WhAas;

    move-result-object v4

    invoke-static {v4, v0}, LPkUwx/Axwse/NmOez;->INDrc(LPkUwx/WhAas;Z)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, LPkUwx/hNnMN;->GrKzz(Ljava/lang/String;Ljava/lang/String;)LPkUwx/hNnMN;

    :cond_2
    const-string v3, "Connection"

    invoke-virtual {v1, v3}, LPkUwx/tQIEa;->vwibQ(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_3

    const-string v3, "Connection"

    const-string v4, "Keep-Alive"

    invoke-virtual {v2, v3, v4}, LPkUwx/hNnMN;->GrKzz(Ljava/lang/String;Ljava/lang/String;)LPkUwx/hNnMN;

    :cond_3
    const-string v3, "Accept-Encoding"

    invoke-virtual {v1, v3}, LPkUwx/tQIEa;->vwibQ(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_4

    const/4 v0, 0x1

    const-string v3, "Accept-Encoding"

    const-string v4, "gzip"

    invoke-virtual {v2, v3, v4}, LPkUwx/hNnMN;->GrKzz(Ljava/lang/String;Ljava/lang/String;)LPkUwx/hNnMN;

    :cond_4
    iget-object v3, p0, LPkUwx/Axwse/EwidO/xYVdc;->xlBxN:LPkUwx/fZHsD;

    invoke-virtual {v1}, LPkUwx/tQIEa;->EBgsH()LPkUwx/WhAas;

    move-result-object v4

    invoke-interface {v3, v4}, LPkUwx/fZHsD;->XjNqn(LPkUwx/WhAas;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->isEmpty()Z

    move-result v4

    if-nez v4, :cond_5

    const-string v4, "Cookie"

    invoke-direct {p0, v3}, LPkUwx/Axwse/EwidO/xYVdc;->DqbCP(Ljava/util/List;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v4, v3}, LPkUwx/hNnMN;->GrKzz(Ljava/lang/String;Ljava/lang/String;)LPkUwx/hNnMN;

    :cond_5
    const-string v3, "User-Agent"

    invoke-virtual {v1, v3}, LPkUwx/tQIEa;->vwibQ(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_6

    const-string v3, "User-Agent"

    invoke-static {}, LPkUwx/Axwse/eDHQw;->SYgxe()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, LPkUwx/hNnMN;->GrKzz(Ljava/lang/String;Ljava/lang/String;)LPkUwx/hNnMN;

    :cond_6
    invoke-virtual {v2}, LPkUwx/hNnMN;->HWrBW()LPkUwx/tQIEa;

    move-result-object v2

    invoke-interface {p1, v2}, LPkUwx/yHGlH;->oLVwY(LPkUwx/tQIEa;)LPkUwx/kHRtU;

    move-result-object v2

    iget-object v3, p0, LPkUwx/Axwse/EwidO/xYVdc;->xlBxN:LPkUwx/fZHsD;

    invoke-virtual {v1}, LPkUwx/tQIEa;->EBgsH()LPkUwx/WhAas;

    move-result-object v4

    invoke-virtual {v2}, LPkUwx/kHRtU;->AfukV()LPkUwx/CLKCR;

    move-result-object v5

    invoke-static {v3, v4, v5}, LPkUwx/Axwse/EwidO/bjmyg;->moVAb(LPkUwx/fZHsD;LPkUwx/WhAas;LPkUwx/CLKCR;)V

    invoke-virtual {v2}, LPkUwx/kHRtU;->YsCmv()LPkUwx/acCnD;

    move-result-object v3

    invoke-virtual {v3, v1}, LPkUwx/acCnD;->jzFKY(LPkUwx/tQIEa;)LPkUwx/acCnD;

    move-result-object v1

    if-eqz v0, :cond_7

    const-string v0, "gzip"

    const-string v3, "Content-Encoding"

    invoke-virtual {v2, v3}, LPkUwx/kHRtU;->CXcBU(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-static {v2}, LPkUwx/Axwse/EwidO/bjmyg;->cnFQX(LPkUwx/kHRtU;)Z

    move-result v0

    if-eqz v0, :cond_7

    new-instance v0, LwFZra/FWYai;

    invoke-virtual {v2}, LPkUwx/kHRtU;->uOBdj()LPkUwx/wkoHv;

    move-result-object v3

    invoke-virtual {v3}, LPkUwx/wkoHv;->eKnKy()LwFZra/OeMtE;

    move-result-object v3

    invoke-direct {v0, v3}, LwFZra/FWYai;-><init>(LwFZra/vpTWk;)V

    invoke-virtual {v2}, LPkUwx/kHRtU;->AfukV()LPkUwx/CLKCR;

    move-result-object v2

    invoke-virtual {v2}, LPkUwx/CLKCR;->JqPKo()LPkUwx/xlpSH;

    move-result-object v2

    const-string v3, "Content-Encoding"

    invoke-virtual {v2, v3}, LPkUwx/xlpSH;->YrLge(Ljava/lang/String;)LPkUwx/xlpSH;

    move-result-object v2

    const-string v3, "Content-Length"

    invoke-virtual {v2, v3}, LPkUwx/xlpSH;->YrLge(Ljava/lang/String;)LPkUwx/xlpSH;

    move-result-object v2

    invoke-virtual {v2}, LPkUwx/xlpSH;->mhYNn()LPkUwx/CLKCR;

    move-result-object v2

    invoke-virtual {v1, v2}, LPkUwx/acCnD;->zIPDB(LPkUwx/CLKCR;)LPkUwx/acCnD;

    new-instance v3, LPkUwx/Axwse/EwidO/kchTU;

    invoke-static {v0}, LwFZra/LLCTB;->xVbFZ(LwFZra/vpTWk;)LwFZra/OeMtE;

    move-result-object v0

    invoke-direct {v3, v2, v0}, LPkUwx/Axwse/EwidO/kchTU;-><init>(LPkUwx/CLKCR;LwFZra/OeMtE;)V

    invoke-virtual {v1, v3}, LPkUwx/acCnD;->EyhHl(LPkUwx/wkoHv;)LPkUwx/acCnD;

    :cond_7
    invoke-virtual {v1}, LPkUwx/acCnD;->DWSCU()LPkUwx/kHRtU;

    move-result-object v0

    return-object v0

    :cond_8
    const-string v3, "Transfer-Encoding"

    const-string v4, "chunked"

    invoke-virtual {v2, v3, v4}, LPkUwx/hNnMN;->GrKzz(Ljava/lang/String;Ljava/lang/String;)LPkUwx/hNnMN;

    const-string v3, "Content-Length"

    invoke-virtual {v2, v3}, LPkUwx/hNnMN;->eJfyQ(Ljava/lang/String;)LPkUwx/hNnMN;

    goto/16 :goto_0
.end method
